export const post = (opt, callback) => {
  opt.xhrFields = {
    withCredentials: true
  }
  opt.dataType = 'json'
  $.post(opt, data => {
    callback(data)
  })
}